import request from "@/util/request.js";

export const doUserLogin = function(params={}){
    return request.post("login",params)
}

export const insertNewUser = function(params={}){
    return request.post("users",params)
}

export const updateUserState = function(uid="",state=""){
    return request.put(`users/${uid}/state/${state}`)
}

export const updateUseInfo = function(id="",params={}){
    return request.put(`users/${id}`,params)
}

export const findUserList = function(params={}){
    return request.get("/users",{
        params
    })
}



// export default {
//     doUserLogin
// }